package com.代理模式.静态代理;

/**
 * @author: wh(1835734390 @ qq.com)
 * @date: 2023/3/1 9:15
 * @description:
 * @version:
 */
//代理类
public class IntermediaryProxy implements IRentHouse {
    private IRentHouse iRent;
    public IntermediaryProxy(IRentHouse iRentHouse) {
        iRent=iRentHouse;
    }
    @Override
    public void rentHouse() {
        System.out.println("交中介费");
        iRent.rentHouse();
        System.out.println("中介负责维修管理");
    }
}

